home *** CD-ROM | disk | FTP | other *** search
- 151
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- OpenFile
- --- RECORDSEPARATOR ---
- Platform:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Windows and Macintosh
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Description:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baOpenFile opens a document, using the program that the file is associated with.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Usage:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Result = baOpenFile( FileName , State )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Arguments:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- String, String.
- --- RECORDSEPARATOR ---
- FileName is the name of the file to open. The full path name should be supplied.
- --- RECORDSEPARATOR ---
- State is the window state to open the file with.
- --- RECORDSEPARATOR ---
- Can be one of these:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Windows
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- "Normal"
- --- RECORDSEPARATOR ---
- shows in its usual state.
- --- RECORDSEPARATOR ---
- "Hidden"
- --- RECORDSEPARATOR ---
- is not visible.
- --- RECORDSEPARATOR ---
- "Maximised"
- --- RECORDSEPARATOR ---
- shows as a maximised window.
- --- RECORDSEPARATOR ---
- "Minimised"
- --- RECORDSEPARATOR ---
- shows as an minimised icon.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Macintosh
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- The State argument is ignored,
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Returns:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Integer.
- --- RECORDSEPARATOR ---
- Returns an error code. If the return is less than 32 than an error occurred.
- --- RECORDSEPARATOR ---
- On
- --- RECORDSEPARATOR ---
- Windows
- --- RECORDSEPARATOR ---
- , possible errors include:
- --- RECORDSEPARATOR ---
- 0
- --- RECORDSEPARATOR ---
- System was out of memory.
- --- RECORDSEPARATOR ---
- 2
- --- RECORDSEPARATOR ---
- File was not found.
- --- RECORDSEPARATOR ---
- 3
- --- RECORDSEPARATOR ---
- Path was not found.
- --- RECORDSEPARATOR ---
- 5
- --- RECORDSEPARATOR ---
- Sharing or network-protection error.
- --- RECORDSEPARATOR ---
- 6
- --- RECORDSEPARATOR ---
- Library required separate data segments for each task.
- --- RECORDSEPARATOR ---
- 8
- --- RECORDSEPARATOR ---
- There was insufficient memory to start the application.
- --- RECORDSEPARATOR ---
- 10
- --- RECORDSEPARATOR ---
- Windows version was incorrect.
- --- RECORDSEPARATOR ---
- 11
- --- RECORDSEPARATOR ---
- Executable file was invalid. Either it was not a Windows application or there was an error in
- --- RECORDSEPARATOR ---
- the .EXE image.
- --- RECORDSEPARATOR ---
- 12
- --- RECORDSEPARATOR ---
- Application was designed for a different operating system.
- --- RECORDSEPARATOR ---
- 13
- --- RECORDSEPARATOR ---
- Application was designed for MS-DOS 4.0.
- --- RECORDSEPARATOR ---
- 14
- --- RECORDSEPARATOR ---
- Type of executable file was unknown.
- --- RECORDSEPARATOR ---
- 15
- --- RECORDSEPARATOR ---
- Attempt was made to load a real
- --- RECORDSEPARATOR ---
- -mode application (developed for an earlier version of
- --- RECORDSEPARATOR ---
- Windows).
- --- RECORDSEPARATOR ---
- 16
- --- RECORDSEPARATOR ---
- Attempt was made to load a second instance of an executable file containing multiple data
- --- RECORDSEPARATOR ---
- segments that were not marked read-only.
- --- RECORDSEPARATOR ---
- 19
- --- RECORDSEPARATOR ---
- Attempt was made to load a compressed executable file. The file must be decompressed
- --- RECORDSEPARATOR ---
- before it can be loaded.
- --- RECORDSEPARATOR ---
- 20
- --- RECORDSEPARATOR ---
- Dynamic-link library (DLL) file was invalid. One of the DLLs required to run this application
- --- RECORDSEPARATOR ---
- was corrupt.
- --- RECORDSEPARATOR ---
- 21
- --- RECORDSEPARATOR ---
- Application requires 32-bit extensions.
- --- RECORDSEPARATOR ---
- 26
- --- RECORDSEPARATOR ---
- A sharing violation occurred.
- --- RECORDSEPARATOR ---
- 27
- --- RECORDSEPARATOR ---
- The filename association is incomplete or invalid.
- --- RECORDSEPARATOR ---
- 29
- --- RECORDSEPARATOR ---
- The DDE transaction failed.
- --- RECORDSEPARATOR ---
- 30
- --- RECORDSEPARATOR ---
- The DDE transaction could not be completed because other DDE transactions were being
- --- RECORDSEPARATOR ---
- processed.
- --- RECORDSEPARATOR ---
- 31
- --- RECORDSEPARATOR ---
- There is no application associated with the given filename
- --- RECORDSEPARATOR ---
- On
- --- RECORDSEPARATOR ---
- Macintosh
- --- RECORDSEPARATOR ---
- , an error will always return an error value of 0.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Examples:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Director:
- --- RECORDSEPARATOR ---
- set OK = baOpenFile( the pathName & "test.txt" , "maximised" )
- --- RECORDSEPARATOR ---
- Authorware:
- --- RECORDSEPARATOR ---
- OK := baOpenFile( FileLocation ^ "test.txt" , "maximised" )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Notes:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- You should pass in the full path to the file.
- --- RECORDSEPARATOR ---
- Windows
- --- RECORDSEPARATOR ---
- will search for the file in limited
- --- RECORDSEPARATOR ---
- specific places such as the current directory and the PATH variable, but
- --- RECORDSEPARATOR ---
- Macintosh
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- wonΓÇÖt.